%2015-01-08
clear all;
clc;
fprintf('This is a test for WhitePatch');
origImg = imread('../img/a1.jpg');
outImg = WhitePatchRetinex(origImg,0);
outImg2 = WhitePatchRetinex(origImg,1);
figure;
subplot(2,2,1); imshow(origImg); title('Original');
subplot(2,2,2); imshow(outImg); title('WhitePatch1');
subplot(2,2,3); imshow(origImg); title('Original');
subplot(2,2,4); imshow(outImg2); title('WhitePatch2');